package com.ddmh.gateway.config;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * Nacos的配置动态更新网管路由配置
 */
@Slf4j
@Configuration
@Getter
@Setter
public class GatewayRouteConfig {
    /**
     * nacos 配置dataId
     */
    @Value("${config.gateway-route.dataId:gateway-router}")
    private String dataId = "gateway-routes";
    /**
     * nacos 配置group
     */
    @Value("${config.gateway-route.group:DEFAULT_GROUP}")
    private String group = "DEFAULT_GROUP";
    /**
     * nacos 配置地址
     */
    @Value("${config.gateway-route.server-addr}")
    private String serverAddr;
    /**
     * nacos 命名空间
     */
    @Value("${config.gateway-route.namespace}")
    private String namespace;
    /**
     * nacos 账号
     */
    @Value("${config.gateway-route.username}")
    private String username;
    /**
     * nacos 密码
     */
    @Value("${config.gateway-route.password}")
    private String password;
}

